define(()=>{
    return function(goods){
        return goods.reduce((prev,val)=>{
            return prev + (val.flag ? val.num * val.seles : 0);
        },0);
    }
})